﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FF9 RID: 4089
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournEnablePermanentTalentCsReq : IMessage<RogueTournEnablePermanentTalentCsReq>, IMessage, IEquatable<RogueTournEnablePermanentTalentCsReq>, IDeepCloneable<RogueTournEnablePermanentTalentCsReq>, IBufferMessage
	{
		// Token: 0x170033BC RID: 13244
		// (get) Token: 0x0600B6ED RID: 46829 RVA: 0x001EDD21 File Offset: 0x001EBF21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournEnablePermanentTalentCsReq> Parser
		{
			get
			{
				return RogueTournEnablePermanentTalentCsReq._parser;
			}
		}

		// Token: 0x170033BD RID: 13245
		// (get) Token: 0x0600B6EE RID: 46830 RVA: 0x001EDD28 File Offset: 0x001EBF28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournEnablePermanentTalentCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170033BE RID: 13246
		// (get) Token: 0x0600B6EF RID: 46831 RVA: 0x001EDD3A File Offset: 0x001EBF3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournEnablePermanentTalentCsReq.Descriptor;
			}
		}

		// Token: 0x0600B6F0 RID: 46832 RVA: 0x001EDD41 File Offset: 0x001EBF41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournEnablePermanentTalentCsReq()
		{
		}

		// Token: 0x0600B6F1 RID: 46833 RVA: 0x001EDD49 File Offset: 0x001EBF49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournEnablePermanentTalentCsReq(RogueTournEnablePermanentTalentCsReq other) : this()
		{
			this.talentId_ = other.talentId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B6F2 RID: 46834 RVA: 0x001EDD6E File Offset: 0x001EBF6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournEnablePermanentTalentCsReq Clone()
		{
			return new RogueTournEnablePermanentTalentCsReq(this);
		}

		// Token: 0x170033BF RID: 13247
		// (get) Token: 0x0600B6F3 RID: 46835 RVA: 0x001EDD76 File Offset: 0x001EBF76
		// (set) Token: 0x0600B6F4 RID: 46836 RVA: 0x001EDD7E File Offset: 0x001EBF7E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TalentId
		{
			get
			{
				return this.talentId_;
			}
			set
			{
				this.talentId_ = value;
			}
		}

		// Token: 0x0600B6F5 RID: 46837 RVA: 0x001EDD87 File Offset: 0x001EBF87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournEnablePermanentTalentCsReq);
		}

		// Token: 0x0600B6F6 RID: 46838 RVA: 0x001EDD95 File Offset: 0x001EBF95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournEnablePermanentTalentCsReq other)
		{
			return other != null && (other == this || (this.TalentId == other.TalentId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B6F7 RID: 46839 RVA: 0x001EDDC4 File Offset: 0x001EBFC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TalentId != 0U)
			{
				num ^= this.TalentId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B6F8 RID: 46840 RVA: 0x001EDE03 File Offset: 0x001EC003
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B6F9 RID: 46841 RVA: 0x001EDE0B File Offset: 0x001EC00B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B6FA RID: 46842 RVA: 0x001EDE14 File Offset: 0x001EC014
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.TalentId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.TalentId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B6FB RID: 46843 RVA: 0x001EDE48 File Offset: 0x001EC048
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TalentId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TalentId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B6FC RID: 46844 RVA: 0x001EDE86 File Offset: 0x001EC086
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournEnablePermanentTalentCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TalentId != 0U)
			{
				this.TalentId = other.TalentId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B6FD RID: 46845 RVA: 0x001EDEB7 File Offset: 0x001EC0B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B6FE RID: 46846 RVA: 0x001EDEC0 File Offset: 0x001EC0C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.TalentId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040049E8 RID: 18920
		private static readonly MessageParser<RogueTournEnablePermanentTalentCsReq> _parser = new MessageParser<RogueTournEnablePermanentTalentCsReq>(() => new RogueTournEnablePermanentTalentCsReq());

		// Token: 0x040049E9 RID: 18921
		private UnknownFieldSet _unknownFields;

		// Token: 0x040049EA RID: 18922
		public const int TalentIdFieldNumber = 4;

		// Token: 0x040049EB RID: 18923
		private uint talentId_;
	}
}
